package com.ym.medical.domain.entity;

import com.ym.common.constant.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import java.util.Date;

/**
 * Redis保存全部待抢订单：
1、推荐给全科医生抢单时，全科医生刷新页面获取订单，待全科医生抢单成功，插入工对象 ds_advise_record
 *
 * @author ym
 * @date 2020-09-14
 */
@ApiModel("Redis保存全部待抢订单-实体")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "ds_advise_record")
public class DsAdviseRecordEntity extends BaseEntity{

    private static final long serialVersionUID = 1L;

    /**
     * 订单ID
     */
    @ApiModelProperty("订单ID")
    private Long orderId;

    /**
     * 全科医生或患者直接找专科为空
     */
    @ApiModelProperty("全科医生或患者直接找专科为空")
    private Long adviseDsId;

    /**
     * 全科医生或患者直接找专科为空
     */
    @ApiModelProperty("全科医生或患者直接找专科为空")
    private Long adviseDoctorId;

    /**
     * 被推荐的医生ID
     */
    @ApiModelProperty("被推荐的医生ID")
    private Long beadvisedDoctorId;

    /**
     * 被推荐工作室ID
     */
    @ApiModelProperty("被推荐工作室ID")
    private Long beadvisedDsId;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private Date createTime;

}
